package com.atguigu.gmall.order.mapper;

import com.atguigu.gmall.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

/**
 * @program: gmall-parent
 * @author: Mr.Zhuo
 * @create: 2022-04-16 15:04
 **/
@Mapper
@Component
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    // 查询某个用户的订单
    IPage<OrderInfo> selectPageUnion(Page<OrderInfo> page, String userId);

}
